package org.springblade.modules.platform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author SYG
 * @since 2023-05-22
 */
@TableName("measuring_chain_info")
@Data
public class MeasuringChainInfo extends Model<MeasuringChainInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;



    /**
     * 是否开启自检
     */
    @ApiModelProperty(value = "是否开启自检")
    private Boolean isSelf;

    /**
     * 是否开启光源
     */
    @ApiModelProperty(value = "是否开启光源")
    private Boolean isLightSource;

    /**
     * 间隔时间
     */
    @ApiModelProperty(value = "间隔时间")
    private Long intervalTime;

    /**
     * 部门编号
     */
    @ApiModelProperty(value = "部门编号")
    private Long measuringChainId;


    @ApiModelProperty(value = "真空泵")
    private String vacuumPumpId;


    @ApiModelProperty(value = "气压值")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer pressure;

    @ApiModelProperty(value = "范围")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer pressureScope;

}
